package com.common.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.core.enums.CoreEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: stefanie-zy
 * @time: 2024/1/24-16:50
 * @description: 性别枚举
 */
@AllArgsConstructor
@Getter
@Schema(name = "Enum-性别")
public enum SexEnum implements CoreEnum {
    MAN(1, "男"),
    WOMEN(2, "女"),
    ;

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String message;

}
